#{extends 'main.html' /}
#{set title:'Home' /}

<div class="admin-actions">
    <ul>
        #{a @synchAlbum(album.id)}<li><span class="ui-icon ui-icon-refresh">Synch album</span></li>#{/a}
    </ul>
</div>


<h1>Album `${album.title}`</h1>

<form action="@{Picasa.changePhotos}">
    <input type="hidden" name="id" value="${album.id}"/>
    #{list items:album.photos.fetch(), as:'photo' }
        #{picasa.photo photo:photo, lvl:lvl /}
    #{/list}
    <div class="clear">
        <input type="submit" value="Save"/>
    </div>
</form>